package com.bootx.officialAccount.service;

import com.bootx.officialAccount.entity.AccessToken;
import com.bootx.officialAccount.entity.OfficialAccount;
import com.bootx.service.BaseService;

/**
 * @author black
 */
public interface AccessTokenService extends BaseService<AccessToken,Long> {
    boolean expire(OfficialAccount officialAccount);

    AccessToken createOrUpdate(OfficialAccount officialAccount, AccessToken accessToken);

    AccessToken findByOfficialAccount(OfficialAccount officialAccount);
}
